import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        username: ''
    },
    mutations: {
        setUserName(state, obj) {
            state.username = obj
            localStorage.setItem('UserName', state.username)
        }
    },
    getters: {

    },
    actions: {

    }
})